package com.jwdemo
{
	// Data Wrapper for our linked list - 
	public class Node
	{
		private var _data:* ;
		public var _next:Node ;		//public! Naughty!
		public var _prev:Node ;
		
		public function Node(data : *)
		{
			_data	=	data ;
			_next	=	null ;
			_prev	=	null ;
		}
		
		public function getData() : * 
		{
			return _data ;
		}
		
		public function getNext() : Node 
		{
			return _next ;
		}

		public function getPrevious() : Node
		{
			return _prev ;
		}

		public function setNext(node:Node) : void 
		{
			_next	=	node ;
		}
		
		public function setPrevious(node:Node) : void 
		{
			_prev	=	node ;
		}

	}
}